package com.zf.zffencheng.util.api;

import com.william.yun.yunliwuli.api.HttpResponse;
import com.william.yun.yunliwuli.api.request.gateway.AddGatewayRequest;
import com.william.yun.yunliwuli.api.request.goods.Goods;
import com.william.yun.yunliwuli.api.request.store.StoreRequest;

public interface YunliWuliService {

	String REDIS_TOKEN_KEY = "fosiyun.yunliwuli.id:";
	Long TOKEN_EXPIRE = 82800L;
	String LABEL_KRY = "3141592653589793";

	/**
	 * 通过当前账号登录
	 * 
	 * @param accountId
	 * @return
	 */
	String login(Integer accountId);

	/**
	 * 添加门店
	 * 
	 * @param storeRequest
	 * @param login
	 * @return
	 */
	HttpResponse addStore(StoreRequest storeRequest, String login);

	/**
	 * 添加网关
	 * 
	 * @param request
	 * @param login
	 * @return
	 */
	HttpResponse addGateway(AddGatewayRequest request, String login);

	/**
	 * 绑定价签 绑定门店网关
	 * 
	 * @param deviceSn
	 * @param secretKkey
	 * @param storeUUID
	 * @return
	 */
	HttpResponse addLabelAndBinding(String deviceSn, String secretKkey, String storeUUID, String token);

	/**
	 * 添加商品
	 * 
	 * @param string
	 * @param storeUUID
	 * @param token
	 * @return
	 */
	Goods addGoods(String string, String storeUUID, String token, String location, String region);

	/**
	 * 添加商品
	 * 
	 * @param deviceSn
	 * @param templateNo
	 * @param storeUUID
	 * @param token
	 * @return
	 */
	HttpResponse updatebinding(String deviceSn, String templateNo, String storeUUID, String token);
}
